package com.mms.interceptor;

import com.mms.dao.IResourcesDao;
import com.mms.dao.IUserInfoDao;
import com.mms.pojo.Resources;
import com.mms.pojo.UserInfo;
import com.mms.service.IResourcesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;


public class JurisdictionHandlerInterceptor implements HandlerInterceptor {

    /**
     * 用户表
     */
    @Autowired
    IUserInfoDao userInfoDao;

    /**
     * 资源服务
     */
    @Autowired
    IResourcesService resourcesService;

    /**
     * mvc 过滤器
     *
     * @param request
     * @param response
     * @param handler
     * @return
     * @throws Exception
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        HttpSession session = request.getSession();

        return true;
    }

    @Override
    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {

    }

    @Override
    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {

    }
}
